package com.aiyige.page.authentication.adapter;

import android.view.View;
import android.widget.TextView;

import com.aiyige.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.LinkedList;

import butterknife.BindView;
import butterknife.ButterKnife;

public class AuthMsgAdapter extends BaseQuickAdapter<String, AuthMsgAdapter.VH> {


    public AuthMsgAdapter() {
        super(R.layout.auth_msg_item, new LinkedList<String>());
    }

    @Override
    protected void convert(VH helper, String item) {
        helper.bindData(item);
    }

    public class VH extends BaseViewHolder {
        @BindView(R.id.msgTv)
        TextView msgTv;

        public VH(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }

        public void bindData(String data) {
            msgTv.setText(data);
        }
    }

}
